package com.jinghao.tws.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jinghao.core.common.controller.JingHaoBaseController;
import com.jinghao.tws.service.IWvUploadTaskInfoService;
import com.jinghao.tws.entity.WvTaskInfo;
import com.jinghao.tws.entity.WvUploadTaskInfo;

@Controller
@Scope("prototype")
@RequestMapping(value = "/app/tws/WvUploadTaskInfo")
public class WvUploadTaskInfoController extends JingHaoBaseController<WvUploadTaskInfo> {
	//==================定制内容开始======================
//在这里修改代码
	/**
	 * 定时执行任务信息
	 * @param  
	 */
	@ResponseBody
	@RequestMapping(value = "/listWvUploadTaskInfo",method = RequestMethod.GET) 
	public Map<String, Object> listWvUploadTaskInfo(@ModelAttribute("model") WvUploadTaskInfo model){
		this.getWvUploadTaskInfoService().listWvUploadTaskInfo(model);;
        return model.getListJson();   
	} 
	
	//==================定制内容结束======================

	@Autowired
	public void setWvUploadTaskInfoService(IWvUploadTaskInfoService wvUploadTaskInfoService) {
		super.setIJingHaoBaseService(wvUploadTaskInfoService);
	}

	public IWvUploadTaskInfoService getWvUploadTaskInfoService() {
		return (IWvUploadTaskInfoService) super.getIJingHaoBaseService();
	}
}
